<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>TESTER</title>
</head>
<body>

<h1>下单接口</h1>
<p>
1、根据返回的order_sn和total_price,提交到支付宝支付。<BR>

	</p>
<form name="form" method="post" onsubmit="javascript:return go()">
签名：<input name="sign" id="sign" value="" />  <br>

收货人姓名contactman：<input name="contactman" id="contactman" value="" />  <br>
收货人电话mobile：<input name="mobile" id="mobile" value="" />  <br>
身份证idcard：<input name="idcard" id="idcard" value="" />  <br>
省province：<input name="province" id="province" value="" />  <br>
市city：<input name="city" id="city" value="" />  <br>
区district：<input name="district" id="district" value="" />  <br>
地址address：<input name="address" id="address" value="" />  <br>
邮编zipcode：<input name="zipcode" id="zipcode" value="" />  <br>
优惠券coupon_sn：<input name="coupon_sn" id="coupon_sn" value="" />  <br>
支付方式pay_method：<input name="pay_method" id="pay_method" value="" /> alipay/wxpay/yue <br>
发票类型invoice_type：<input name="invoice_type" id="invoice_type" value="" />  <br>
发票抬头invoice_name：<input name="invoice_name" id="invoice_name" value="" />  <br>
发票内容invoice_content：<input name="invoice_content" id="invoice_content" value="" />  <br>

要结算的产品：
<textarea style="width:70%" rows="22" name="goods">[
	{
		"goods_id":"272",
		"quantity":"2",
		"spec":"默认规格"
	},
	{
		"goods_id":"252",
		"quantity":"1",
		"spec":"默认规格"
	}
]</textarea><br/>

积分抵扣integral：<input name="integral" id="integral" value="" /> 0||1<br>
积分商城订单integral_order：<input name="integral_order" id="integral_order" value="" /> 0||1<br>

<input type=submit value=submit>
</form>

</body>
</html>

<script>
function go(){
	document.form.action = "/api.php?app=cart&act=order&version=&sign="+document.getElementById('sign').value;
	document.form.submit();
	return true;
}
</script>